﻿<%@ include file="common_page_top.jsp" %>
<!--进票管理 -->
<form action="<%=path%>/invoiceMgr/indexIncome" method="post" name="userForm" id="userForm">
	<%--<table style="margin-top:5px;">
        <tr>
            <td>
                <div class="nav-search">
                    <span class="input-icon">
                        <input class="nav-search-input" autocomplete="off"
                               id="nav-search-input" type="text" name="keywords"
                               value="" placeholder="这里输入关键词"/>
                        <i class="ace-icon fa fa-search nav-search-icon"></i>
                    </span>
                </div>
            </td>
            <td style="padding-left:2px;">
                <input class="span10 date-picker" name="lastLoginStart"
                       id="lastLoginStart" value=""
                       type="text" data-date-format="yyyy-mm-dd" readonly="readonly"
                       style="width:88px;" placeholder="开始日期" title="最近登录开始"/>
            </td>
            <td style="padding-left:2px;">
                <input class="span10 date-picker" name="lastLoginEnd" name="lastLoginEnd"
                       value="" type="text" data-date-format="yyyy-mm-dd"
                       readonly="readonly" style="width:88px;" placeholder="结束日期"
                       title="最近登录结束"/>
            </td>
            <td style="vertical-align:top;padding-left:2px;">
                <select class="chosen-select form-control" name="ROLE_ID"
                        id="role_id" data-placeholder="请选择角色"
                        style="vertical-align:top;width: 120px;">
                    <option value=""></option>
                    <option value="">全部</option>
&lt;%&ndash;
                    <c:forEach items="${roleList}" var="role">
                        <option value="${role.ROLE_ID }"
                                <c:if test="${pd.ROLE_ID==role.ROLE_ID}">selected</c:if>>${role.ROLE_NAME }</option>
                    </c:forEach>
&ndash;%&gt;
                </select>
            </td>
            <td style="vertical-align:top;padding-left:2px;">
                <select class="chosen-select form-control" name="STATUS" id="STATUS"
                        data-placeholder="状态" style="vertical-align:top;width: 79px;">
                    <option value=""></option>
                    <option value="">全部</option>
                    &lt;%&ndash;<option value="1"
                            <c:if test="${pd.STATUS == '1' }">selected</c:if> >正常
                    </option>
                    <option value="0"
                            <c:if test="${pd.STATUS == '0' }">selected</c:if> >冻结
                    </option>&ndash;%&gt;
                </select>
            </td>
            <c:if test="${QX.cha == 1 }">
                <td style="vertical-align:top;padding-left:2px;">
                    <a class="btn btn-light btn-xs"
                       onclick="searchs();" title="检索">
                        <i id="nav-search-icon"
                           class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i>
                    </a>
                </td>
                <c:if test="${QX.toExcel == 1 }">
                    <td style="vertical-align:top;padding-left:2px;">
                        <a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL">
                            <i id="nav-search-icon"
                               class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i>
                        </a>
                    </td>
                </c:if>
            </c:if>
        </tr>
    </table>--%>
	<div class="page-header position-relative">
		<table style="width:100%;">
			<tr>
				<td style="vertical-align:top;">

					<a title="批量通过" class="btn btn-mini btn-info"
					   onclick="makeAll('确定要给通过选中的账单吗?');">
						<i class="ace-icon fa bigger-120">信息核对</i>
					</a>
					<a title="批量否决" class="btn btn-mini btn-warning"
					   onclick="makeAll('确定要批量否决选中的账单吗?');">
						<i class="ace-icon fa bigger-120">发票签收</i>
					</a>
					<a title="生成账单号" class="btn btn-mini btn-danger"
					   onclick="makeAll('确定生成账单号数据吗?');">
						<i class='ace-icon fa bigger-120'>认证抵扣</i>
					</a>
					<a title="生成账单号" class="btn btn-mini btn-danger"
					   onclick="makeAll('确定生成账单号数据吗?');">
						<i class='ace-icon fa bigger-120'>付款核销</i>
					</a>
				</td>
			</tr>
		</table>
	</div>
	<!-- 检索  -->
	<table id="simple-table" class="table table-striped table-bordered table-hover"
		   style="margin-top:5px;">
		<thead>
		<tr>
			<th class="center" style="width:35px;">
				<label class="pos-rel">
					<input type="checkbox" class="ace" id="zcheckbox"/>
					<span class="lbl"></span></label>
			</th>
			<th class="center" style="width:50px;">业务编号</th>
			<th class="center">结算单位</th>
			<th class="center">申请部门</th>
			<th class="center">业务类型</th>
			<th class="center">发票类型</th>
			<th class="center">发票名目</th>
			<th class="center">费用类别</th>
			<th class="center">费用项目</th>
			<th class="center">税率</th>
			<th class="center">未含税金额增值税额</th>
			<th class="center">起止港</th>
			<th class="center">开票备注信息</th>
			<th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>申请时间
			</th>
			<th class="center">申请人</th>
			<th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>处理时间
			</th>
			<th class="center">经办人</th>
			<%--<th class="center">状态</th>--%>
			<th class="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<!-- 开始循环 -->
		<c:choose>
			<c:when test="${not empty dataList}">
				<c:if test="${QX.cha == 0 }">
					<c:forEach items="${dataList}" var="d" varStatus="vs">
						<tr>
							<td class='center' style="width: 30px;">
								<label><input type='checkbox' name='ids'
											  value="${d.bizId }" id="${d.bizId }"
											  alt="${d.bizId}" class="ace"/><span
										class="lbl"></span></label>
							</td>
							<td class='center' style="width: 30px;">${vs.index+1}</td>
							<td class="center">${d.payDeptName }</td>
							<td class="center">${d.applyDeptName }</td>
							<td class="center">${d.bizTypeDesc }</td>
							<td class="center">${d.ticketName }</td>
							<td class="center">${d.feeCategoryDesc }</td>
							<td class="center">${d.feeDesc}</td>
							<td class="center">${d.taxRatio}</td>
							<td class="center">${d.fee}</td>
							<td class="center">${d.feeAdded}</td>
							<td class="center">${d.portStartDesc}--${d.portEndDesc}</td>
							<td class="center">${d.crtRemark}</td>
							<td class="center">${d.operDate}</td>
							<td class="center">${d.applyCreatorName}</td>
							<td class="center">${d.createTime}</td>
							<td class="center">${d.operatorName}</td>
								<%--<td style="width: 60px;" class="center">
                                    <c:if test="${d.status == '0' }"><span
                                            class="label label-important arrowed-in">冻结</span></c:if>
                                    <c:if test="${d.status == '1' }"><span
                                            class="label label-success arrowed">正常</span></c:if>
                                </td>--%>
							<td class="center">
								<div class="hidden-sm hidden-xs btn-group">
										<%--<c:if test="${QX.edit == 1 }">--%>
									<a class="btn btn-xs btn-success" title="编辑"
									   onclick="editUser('${d.bizId}');">
										<i class="ace-icon fa bigger-120"
										   title="编辑"></i>通过
									</a>
										<%--</c:if>
                                        <c:if test="${QX.del == 1 }">--%>
									<a class="btn btn-xs btn-danger"
									   onclick="delUser('${d.bizId }','${user.USERNAME }');">
										<i class="ace-icon fa bigger-120"
										   title="删除"></i>否决
									</a>
										<%--</c:if>--%>
								</div>
							</td>
						</tr>
					</c:forEach>
				</c:if>
				<c:if test="${QX.cha == 1 }">
					<tr>
						<td colspan="100" class="center">您无权查看</td>
					</tr>
				</c:if>
			</c:when>
			<c:otherwise>
				<tr class="main_info">
					<td colspan="100" class="center">没有相关数据</td>
				</tr>
			</c:otherwise>
		</c:choose>
		</tbody>
	</table>
	<%--<div class="page-header position-relative">--%>
	<table style="width:100%;">
		<tr>
			<%--<td style="vertical-align:top;">
                <c:if test="${QX.add == 0 }">
                    <a class="btn btn-mini btn-success" onclick="add();">新增</a>
                </c:if>
                <c:if test="${QX.email == 0 }">
                    <a title="批量发送电子邮件" class="btn btn-mini btn-info"
                       onclick="makeAll('确定要给选中的用户发送邮件吗?');">
                        <i class="ace-icon fa fa-envelope bigger-120"></i>
                    </a></c:if>
                <c:if test="${QX.sms == 0 }">
                    <a title="批量发送短信" class="btn btn-mini btn-warning"
                       onclick="makeAll('确定要给选中的用户发送短信吗?');">
                        <i class="ace-icon fa fa-envelope-o bigger-120"></i>
                    </a></c:if>
                <c:if test="${QX.del == 0 }">
                    <a title="批量删除" class="btn btn-mini btn-danger"
                       onclick="makeAll('确定要删除选中的数据吗?');">
                        <i class='ace-icon fa fa-trash-o bigger-120'></i></a>
                </c:if>
            </td>--%>
			<td style="vertical-align:top;text-align: right">
				<div class="pagination"
					 style="float: right;padding-top: 0px;margin-top: 0px;">
					${page.pageStr}
				</div>
			</td>
		</tr>
	</table>
	<%--</div>--%>

</form>
<div class="position-relative">
	<div class="position-relative">
		<label style="top: -40px;position: absolute;">单票收入明细</label>
		<table id="simple-table-income" class="table table-striped table-bordered table-hover"
			   style="margin-top:5px;">
			<thead>
			<tr>
				<th class="center" style="width:50px;">业务编号</th>
				<th class="center">结算单位</th>
				<th class="center">申请部门</th>
				<th class="center">业务类型</th>
				<th class="center">发票类型</th>
				<th class="center">发票名目</th>
				<th class="center">费用类别</th>
				<th class="center">费用项目</th>
				<th class="center">税率</th>
				<th class="center">未含税金额增值税额</th>
				<th class="center">起止港</th>
				<th class="center">开票备注信息</th>
				<th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>申请时间
				</th>
				<th class="center">申请人</th>
				<th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>处理时间
				</th>
				<th class="center">经办人</th>
				<%--<th class="center">状态</th>--%>
			</tr>
			</thead>
			<tbody>
			<!-- 开始循环 -->
			<c:choose>
				<c:when test="${not empty dataList}">
					<c:if test="${QX.cha == 0 }">
						<c:forEach items="${dataList}" var="d" varStatus="vs">
							<tr>
									<%--<td class='center' style="width: 30px;">
                                        <label><input type='checkbox' name='ids'
                                                      value="${d.bizId }" id="${d.bizId }"
                                                      alt="${d.bizId}" class="ace"/><span
                                                class="lbl"></span></label>
                                    </td>--%>
								<td class='center' style="width: 30px;">${vs.index+1}</td>
								<td class="center">${d.payDeptName }</td>
								<td class="center">${d.applyDeptName }</td>
								<td class="center">${d.bizTypeDesc }</td>
								<td class="center">${d.ticketName }</td>
								<td class="center">${d.feeCategoryDesc }</td>
								<td class="center">${d.feeDesc}</td>
								<td class="center">${d.taxRatio}</td>
								<td class="center">${d.fee}</td>
								<td class="center">${d.feeAdded}</td>
								<td class="center">${d.portStartDesc}--${d.portEndDesc}</td>
								<td class="center">${d.crtRemark}</td>
								<td class="center">${d.operDate}</td>
								<td class="center">${d.applyCreatorName}</td>
								<td class="center">${d.createTime}</td>
								<td class="center">${d.operatorName}</td>
									<%--<td style="width: 60px;" class="center">
                                        <c:if test="${d.status == '0' }"><span
                                                class="label label-important arrowed-in">冻结</span></c:if>
                                        <c:if test="${d.status == '1' }"><span
                                                class="label label-success arrowed">正常</span></c:if>
                                    </td>--%>
							</tr>
						</c:forEach>
					</c:if>
					<c:if test="${QX.cha == 1 }">
						<tr>
							<td colspan="100" class="center">您无权查看</td>
						</tr>
					</c:if>
				</c:when>
				<c:otherwise>
					<tr class="main_info">
						<td colspan="100" class="center">没有相关数据</td>
					</tr>
				</c:otherwise>
			</c:choose>
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" src="static/js/finance/account_check.js"></script>

<%@ include file="common_page_bottom.jsp" %>

</body>
</html>